package com.jonluo.service;

import com.jonluo.utils.PageInfo;

import java.util.List;

/**
 * @author jonluo
 * Date 2017/9/15
 */
public interface BaseService<T>{

    int save(T t);

    int saveBatch(List<T> list);

    int update(T t);

    int delete(String id);

    int deleteBatch(String[] ids);

    T query(String id);

    List<T> queryList(PageInfo pageInfo);

    int queryTotal(PageInfo pageInfo);

    int queryTotal();

}
